<?xml version="1.0" encoding="UTF-8" ?>
<objects>
  <!-- 损耗实现 -->
  <object name="spoilageImpl0" type="mabu.SpoilageImpl">
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="spoilageImpl1" type="mabu.SpoilageImpl2">
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="findInfoByBarcodeForm" factory-object="mabuFormFactory" factory-method="CreateInstance">
      <constructor-arg>findinfobybarcode</constructor-arg>
      <property name="Query">
          <![CDATA[
   select designno as 花号,colorno as 色号,coilno as 卷号,
	packageno as 包号,emp.name as 打卷员工,emp2.name as 打包员工,
	[length] as 长度,banci as 班次,colorname as 颜色,jitai.name as 机台 ,
	coils.sigangno as 缸号,gangno.name as 缸,barcode as 卷条码,packagebarcode as 包条码,coildate as 打卷时间,packagedate as 打包时间,
	orders.orderno as 订单号,orders.flowno as 流程卡号,ordername as 产品名称,
remark1 as 备注1,remark2 as 备注2
from coils left join employeeinfo emp
	on coils.coilstuffid=emp.id
	left outer join employeeinfo emp2 on coils.packagestuffid=emp2.id
left outer join  jitai on coils.machineid =jitai.id
left outer join gangno on coils.sigangno=gangno.id
left outer join orders on coils.orderid=orders.orderid
    where coils.barcode='#barcode#' or coils.packagebarcode='#barcode#'
          ]]>
      </property>
  </object>
  <object name="planForm" type="SBFUI.LocalizeFormFactoryObject" lazy-init="true">
    <property name="Form">
      <object name="planFormForm"  factory-object="mabuFormFactory" factory-method="CreateInstance">
        <constructor-arg>plan</constructor-arg>
        <property name="recordNavigate">
          <object name="planFormRecordNavigate" type="sbf.PrimaryKeyRecordNavigate">
            <property name="tablename">orders</property>
            <property name="PrimaryKeyColumnName">orderid</property>
            <property name="AdoTemplate">
              <ref object="adoTemplate"/>
            </property>
          </object>
        </property>
      </object>
    </property>
  </object>
  <object name="mabuFormFactory" type="mabu.FormFactory"/>
  <object name="coilForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="coilFormForm"  factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>coil</constructor-arg>
           <property name="packageForm"><ref object="packageForm"/></property>
        <property name="MadanOptionForm"><ref object="madanOptionForm"/></property>
        <property name="PrintOptionsForm"><ref object="printOptions"/></property>
        <property name="WrongInputForm"><ref object="wrongInputForm"/></property>
		<property name="DefaultCounterType">0</property>
		<property name="ColorSearchColumn">designno</property>
      </object>
      <object name="sortForm" type="SBFUI.LocalizeFormFactoryObject" singleton="false" lazy-init="true">
        <property name="Form">
          <object name="sortFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" lazy-init="true">
            <constructor-arg>sort</constructor-arg>
          </object>
        </property>
      </object>
      <object name="orderStatusForm" type="SBFUI.LocalizeFormFactoryObject" singleton="false" lazy-init="true">
        <property name="Form">
      <object name="orderStatusFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance"  lazy-init="true" singleton="false">
        <constructor-arg>orderstatus</constructor-arg>
      </object>
        </property>
      </object>
      <object name="productionwatchForm" type="SBFUI.LocalizeFormFactoryObject" singleton="false" lazy-init="true">
        <property name="Form">
        <object name="productionwatchFormForm"  factory-object="mabuFormFactory" factory-method="CreateInstance"  lazy-init="true" singleton="false">
          <constructor-arg>productionwatch</constructor-arg>
          <property name="QueryBuilder">
            <ref object="queryBuilder"/>
          </property>
        </object>
        </property>
      </object>
          </property>
  </object>
  <object name="operatorForm" type="SBFUI.LocalizeFormFactoryObject"   lazy-init="true" singleton="false">
    <property name="Form">
      <object name="operatorFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">>
        <constructor-arg>operator</constructor-arg>
      </object>
    </property>
  </object>
  <object name="colorInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="colorInfoFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>colorinfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="customerInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="customerInfoFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>customerinfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="factoryInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="factoryInfoForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>factoryinfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="dutyInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="dutyInfoFormForm"  factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>dutyinfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="employeeInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="employeeInfoFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>employeeinfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="harborInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="harborInfoFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>harborinfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="lengthDWForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="lengthDWFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">>
        <constructor-arg>lengthdw</constructor-arg>
      </object>
    </property>
  </object>
  <object name="wrongInfoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="wrongInfoFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>wronginfo</constructor-arg>
      </object>
    </property>
  </object>
  <object name="coilInput" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="coilInputF" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>coilinput</constructor-arg>
        <property name="OrderService"><ref object="orderService"/></property>
        <property name="CommunicationErrorForm"><ref object="communicationErrorForm"/></property>
        <property name="WrongInputForm"><ref object="wrongInputForm"/></property>                                                                                      
      </object>
    </property>
  </object>
  <object name="communicationErrorForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="communicationErrorFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>communicationerror</constructor-arg>
      </object>
    </property>
  </object>
  <object name="findCondition" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="findConditionForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>findCondition</constructor-arg>
      </object>
    </property>
  </object>
  <object name="modifyDataForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="modifyDataFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>modifydata</constructor-arg>
      </object>
    </property>
  </object>
  <object name="madanOptionForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="madanOptionFormForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>madanoption</constructor-arg>
      </object>
    </property>
  </object>
  <object name="printOptions" type="SBFUI.LocalizeFormFactoryObject" lazy-init="true" singleton="false">
    <property name="Form">
      <object name="printOptionsForm" factory-object="mabuFormFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>printoptions</constructor-arg>
      </object>
    </property>
  </object>

  <object name="addToPackageForm" type="SBFUI.LocalizeFormFactoryObject" lazy-init="true" singleton="false">
    <property name="Form">
        <object name="addToPackageFormForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
            <constructor-arg>addtopackage</constructor-arg>
        </object>
    </property>
  </object>
  <object name="packageForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="packageFormForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>package</constructor-arg>
      </object>
    </property>
  </object>
  <object name="wrongInputForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="wrongInputFormForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>wronginput</constructor-arg>
      </object>
    </property>
  </object>
  <object name="selectMachineForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="selectMachineFormForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>selectmachine</constructor-arg>
      </object>
    </property>
  </object>
  <object name="jitaiForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="jitaiFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>jitai</constructor-arg>
      </object>
    </property>
  </object>
  <object name="gangnoForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="gangnoFormForm"   factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>gangno</constructor-arg>
      </object>
    </property>
  </object>
  <object name="cangkuForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="cangkuFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>cangku</constructor-arg>
      </object>
    </property>
  </object>
  <!-- 报表 -->
  <object name="workLogForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
      <object name="workLogForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
        <constructor-arg>worklog</constructor-arg>
        <property name="BaseDataService"><ref object="baseDataService"/></property>
        <property name="ReportService">
          <ref object="reportService"/>
        </property>
      </object>
    </property>
  </object>
  <object name="employeeWorkReportForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
  <object name="employeeWorkReportFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
    <constructor-arg>employeeworkreport</constructor-arg>
    <property name="ReportService">
      <ref object="reportService"/>
    </property>
  </object>
    </property>
  </object>
  <object name="qualityReportForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
  <object name="qualityReportFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
    <constructor-arg>qualityreport</constructor-arg>
    <property name="ReportService">
      <ref object="reportService"/>
    </property>
  </object>
    </property>
  </object>
  <object name="factoryProcessingAmountForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
  <object name="factoryProcessingAmountFormForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
    <constructor-arg>factoryProcessingAmount</constructor-arg>
    <property name="ReportService">
      <ref object="reportService"/>
    </property>
    <property name="FindCondition"><ref object="findCondition"/></property>
  </object>
    </property>
  </object>
  <object name="customerQuantityForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
  <object name="customerQuantityFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
    <constructor-arg>customerquantity</constructor-arg>
    <property name="ReportService">
      <ref object="reportService"/>
    </property>
    <property name="FindCondition"><ref object="findCondition"/></property>
  </object>
    </property>
  </object>
  <object name="factorySubstandardProductForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
  <object name="factorySubstandardProductFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
    <constructor-arg>factorysubstandardproduct</constructor-arg>
    <property name="ReportService">
      <ref object="reportService"/>
    </property>
    <property name="FindCondition"><ref object="findCondition"/></property>
  </object>
    </property>
  </object>
  <object name="optionsForm" type="SBFUI.LocalizeFormFactoryObject" lazy-init="true" singleton="false">
    <property name="Form">
        <object name="optionsFormForm" factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
            <constructor-arg>options</constructor-arg>
            <property name="RootNode"><ref object="root"/></property>
        </object>
    </property>
  </object>
  <object name="orderSubstandardProductForm" type="SBFUI.LocalizeFormFactoryObject"  lazy-init="true" singleton="false">
    <property name="Form">
  <object name="orderSubstandardProductFormForm"  factory-object="mabuformFactory" factory-method="CreateInstance" singleton="false">
    <constructor-arg>ordersubstandardproduct</constructor-arg>
    <property name="ReportService">
      <ref object="reportService"/>
    </property>
    <property name="FindCondition"><ref object="findCondition"/></property>
  </object>
    </property>
  </object>


  <!--lookup -->
  <object name="customerlookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>customerinfo</value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="factorylookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>factoryinfo</value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="colorlookup" type="sbf.DataTableLookup">
    <property name="DataTable">colorinfo</property>
    <property name="sql">select id,name,rgb from colorinfo</property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
	<property name="AllowAddNew">false</property>
  </object>
  <object name="lengthdwlookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>lengthdw</value>
    </property>
    <property name="sql">
      <value><![CDATA[select * from lengthdw
        ]]></value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="harborlookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>harborinfo</value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="employeelookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>employeeinfo</value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="labelslookup" type="sbf.DataTableLookup">
    <property name="sql">
      <value>select 0 as Id,'请选择' as Name  union all select id,name from labels</value>
    </property>
    <property name="AllowAddNew">false</property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>

  </object>

  <object name="jitailookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>jitai</value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>
  <object name="gangnolookup" type="sbf.DataTableLookup">
    <property name="DataTable">
      <value>gangno</value>
    </property>
    <property name="AdoTemplate">
      <ref object="adoTemplate"/>
    </property>
  </object>

  <object name="LookupManager" type="sbfui.LookupManager">
    <property name="Lookups">
      <dictionary>
        <entry key="labels">
          <ref object="labelslookup"/>
        </entry>
        <entry key="customer">
          <ref object="customerlookup"/>
        </entry>
        <entry key="color">
          <ref object="colorlookup"/>
        </entry>
        <entry key="factory">
          <ref object="factorylookup"/>
        </entry>
        <entry key="harbor">
          <ref object="harborlookup"/>
        </entry>
        <entry key="lengthdw">
          <ref object="lengthdwlookup"/>
        </entry>
        <entry key="employee">
          <ref object="employeelookup"/>
        </entry>
        <entry key="jitai">
          <ref object="jitailookup"/>
        </entry>
        <entry key="gangno">
          <ref object="gangnolookup"/>
        </entry>
      </dictionary>
    </property>
  </object>
</objects>
